package com.zlb.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
  * @Description 
  * @Author zlb
  * @Since 2024-03-21 09:37:09
  */
@TableName(value = "house_info")
public class HouseInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(exist = false)
    private Integer key;

    private Long familyId;
    /**
     * 权属人
     */
    private Long owner;

    /**
     * 权属人
     */
    @TableField(exist = false)
    private String ownerName;


    /**
     * 所在行政区
     */
    private String region;

    /**
     * 房屋面积
     */
    private Double houseArea;

    /**
     * 逻辑删除 0:否 1:是
     */
    private Byte isDeleted;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Long getId() {
        return id;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public Long getFamilyId() {
        return familyId;
    }

    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取权属人
     *
     * @return owner - 权属人
     */
    public Long getOwner() {
        return owner;
    }

    /**
     * 设置权属人
     *
     * @param owner 权属人
     */
    public void setOwner(Long owner) {
        this.owner = owner;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    /**
     * 获取所在行政区
     *
     * @return region - 所在行政区
     */
    public String getRegion() {
        return region;
    }

    /**
     * 设置所在行政区
     *
     * @param region 所在行政区
     */
    public void setRegion(String region) {
        this.region = region;
    }

    /**
     * 获取房屋面积
     *
     * @return house_area - 房屋面积
     */
    public Double getHouseArea() {
        return houseArea;
    }

    /**
     * 设置房屋面积
     *
     * @param houseArea 房屋面积
     */
    public void setHouseArea(Double houseArea) {
        this.houseArea = houseArea;
    }

    /**
     * 获取逻辑删除 0:否 1:是
     *
     * @return is_deleted - 逻辑删除 0:否 1:是
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置逻辑删除 0:否 1:是
     *
     * @param isDeleted 逻辑删除 0:否 1:是
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}